﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class TopicModuleInfoConfig : EntityTypeConfiguration<TopicModuleInfo>
    {
        public TopicModuleInfoConfig()
        {
            ToTable("Himall_TopicModules");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(200);         
            HasRequired(x => x.TopicInfo).WithMany(x => x.TopicModuleInfo).HasForeignKey(x => x.TopicId);
        }
    }
}
